package com.xzq.spring;

import lombok.Data;
import org.omg.CORBA.StringHolder;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author xzq
 * @Description //TODO
 * @Date 2021/11/23 10:50
 * @Version 1.0.0
 **/
@ConfigurationProperties(prefix = "rpc")
@Data
public class RpcProperties {
    private int port;

    private Register register;

    /**
     * 是否启用服务端
     */
    private boolean enable;

    @Data
    public static class Register {
        private Redis redis;
        private Nacos nacos;
    }

    @Data
    public static class Redis{
        private String host;
        private Integer port;
        private String auth;
    }
    @Data
    public static class Nacos{
        private String serveraddr;
    }
}
